import $http from '@/utils/request'
import * as $API from '@/utils/api'
import { zcJsonCompare, zcJsonWordCompare } from '@utils/tools'
import { getSession, setSession } from '@utils/navigation'

export default {
  state: {
    countryCode: '',
    cityId: '',
    dateType: 'month',
    targetStart: '',
    targetEnd: '',
    targetWeek: '',
    targetMonth: '',
  },
  getters: {},
  mutations: {
    setPageInfo(state, data) {
      state.countryCode = data.countryCode
      state.cityId = data.cityId
      state.targetStart = data.targetStart
      state.targetEnd = data.targetEnd
    },
    setDateType(state, data) {
      state.dateType = data
    },
    setTargetWeek(state, data) {
      state.targetWeek = data
    },
    setTargetMonth(state, data) {
      state.targetMonth = data
    },
  },
}
